﻿#include "movestock.h"

MoveStock::MoveStock(Stock *stock, QPair<QPoint, QPoint> path)
{
    m_stock = stock;
    m_path = path;
}

int MoveStock::execute()
{
    m_stock->move(m_path.second);
    return 0;
}

int MoveStock::redo()
{
    m_stock->move(m_path.first);
    return 0;
}
